File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -902,10 +902,10 @@ def quick_mounts_purge():
902
902
903
903
Notes
904
904
-----
905
- Currenlty we delete anything older than 30 days that is not linked
905
+ Currently we delete anything older than 30 days that is not linked
906
906
to the database. This number is intentionally hardcoded in the code.
907
- At time of writting this number seem high but keeping it this way to be
908
- safe. In the future, if needed, it can be changes .
907
+ At the time of this writing this number seem high but keeping it
908
+ this way to be safe. In the future, if needed, it can be changed .
909
909
"""
910
910
with qdb .sql_connection .TRN :
911
911
main_sql = """SELECT data_directory_id FROM qiita.artifact_type at
@@ -958,9 +958,8 @@ def quick_mounts_purge():
958
958
report .append ('----------------------' )
959
959
960
960
for td in list (to_delete ):
961
- if not exists (td ):
962
- continue
963
- rmtree (td )
961
+ if exists (td ):
962
+ rmtree (td )
964
963
965
964
return '\n ' .join (report )
966
965
You can’t perform that action at this time.
0 commit comments