radames commited on
Commit
14a7251
1 Parent(s): dabf25e

always update db

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -194,12 +194,10 @@ async def sync_data():
194
  [likes, downloads, model_id])
195
  db.commit()
196
 
197
- if (len(models) > 0):
198
- print("Updating repository")
199
- subprocess.Popen(
200
- "git add . && git commit --amend -m 'update' && git push --force", cwd=DB_FOLDER, shell=True)
201
- else:
202
- print("No new models found")
203
 
204
  app = FastAPI()
205
  app.add_middleware(
 
194
  [likes, downloads, model_id])
195
  db.commit()
196
 
197
+ print("Updating DB repository")
198
+ subprocess.Popen(
199
+ "git add . && git commit --amend -m 'update' && git push --force", cwd=DB_FOLDER, shell=True)
200
+
 
 
201
 
202
  app = FastAPI()
203
  app.add_middleware(