justheuristic %!s(int64=3) %!d(string=hai) anos
pai
achega
d1b17da45d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: