mshuaibi commited on
Commit
1da8384
·
verified ·
1 Parent(s): d8fc35e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,4 +1,3 @@
1
- import datetime
2
  import json
3
  import os
4
  import tempfile
@@ -305,7 +304,7 @@ def add_new_eval(
305
  if row["username"] == profile.username
306
  )
307
 
308
- current_month = datetime.datetime.now().strftime("%Y-%m")
309
  current_month_submissions = [
310
  date for date in user_submission_dates if date.startswith(current_month)
311
  ]
@@ -331,7 +330,7 @@ def add_new_eval(
331
  eval_type,
332
  )
333
 
334
- submission_time = datetime.datetime.today().strftime("%Y-%m-%d-%H:%M")
335
 
336
  # Upload submission file
337
  yield "☁️ Uploading submission file..."
 
 
1
  import json
2
  import os
3
  import tempfile
 
304
  if row["username"] == profile.username
305
  )
306
 
307
+ current_month = datetime.now().strftime("%Y-%m")
308
  current_month_submissions = [
309
  date for date in user_submission_dates if date.startswith(current_month)
310
  ]
 
330
  eval_type,
331
  )
332
 
333
+ submission_time = datetime.today().strftime("%Y-%m-%d-%H:%M")
334
 
335
  # Upload submission file
336
  yield "☁️ Uploading submission file..."