Skip to content

Commit 4444860

Browse files
committed
frontend: fix small typos in ‹.delete_after_humanized›
• “than” is used for comparing comparing numbers… “then” is an adverb • “To be removed in next cleanup” -> “to be removed in the next cleanup” · lowercase “to” to keep consistent capitalization within the same property · add “the”, since it's a specific (the next one) deletion Noticed this when going through the code related to #4163 Signed-off-by: Matej Focko <mfocko@redhat.com>
1 parent 609990c commit 4444860

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

backend/run/copr_find_obsolete_builds.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ then
1919
repoquery --repofrompath=query,$CHROOT_PATH --repoid=query -a --location 2>$ERR_LOG \
2020
| cut -c8- > $LATEST_PKGS
2121

22-
# Remove builds older then $DAYS days and which have newer builds available
22+
# Remove builds older than $DAYS days and which have newer builds available
2323
for SUCCESS in $(find -name success -mtime +$DAYS); do
2424
DIR=$(basename $(dirname $SUCCESS))
2525
echo "# checking dir: " $DIR

frontend/coprs_frontend/coprs/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,13 +1929,13 @@ def delete_after_humanized(self):
19291929
Return how soon the chroot is going to be deleted (expired).
19301930
The largest unit we use is a day and the smallest is an hour. When the
19311931
remaining time is just a couple of minutes or seconds, we just say that
1932-
it is "less then an hour".
1932+
it is "less than an hour".
19331933
"""
19341934
if self.delete_after is None:
19351935
return None
19361936

19371937
if self.delete_after_expired:
1938-
return "To be removed in next cleanup"
1938+
return "to be removed in the next cleanup"
19391939

19401940
delta = self.delete_after - datetime.datetime.now()
19411941
if delta.days:
@@ -1944,7 +1944,7 @@ def delete_after_humanized(self):
19441944
hours = int(round(delta.seconds / 3600))
19451945
if hours:
19461946
return "{0} hours".format(hours)
1947-
return "less then an hour"
1947+
return "less than an hour"
19481948

19491949
@property
19501950
def module_setup_commands(self):

0 commit comments

Comments
 (0)