justheuristic 3 vuotta sitten
vanhempi
commit
d1b17da45d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      tests/scripts/remove_old_models.py

+ 1 - 1
tests/scripts/remove_old_models.py

@@ -15,7 +15,7 @@ if __name__ == "__main__":
     for model in list_models(author=args.author, full=True):
         last_modified = datetime.strptime(model.lastModified, "%Y-%m-%dT%H:%M:%S.%fZ")
 
-        if model.modelId.endswith("-main") or "/test-" not in model.Id:
+        if model.modelId.endswith("-main") or "/test-" not in model.modelId:
             continue  # remove only test models
 
         if (datetime.now() - last_modified).total_seconds() > args.seconds_since_last_updated: