fix: to prod settings
Browse files
app.py
CHANGED
|
@@ -23,9 +23,7 @@ CERTIFIED_USERS_FILENAME = "certified.csv"
|
|
| 23 |
|
| 24 |
ORGANIZATION = "pseudolab"
|
| 25 |
|
| 26 |
-
|
| 27 |
-
# TODO: Change this to 20th October 2023 after test is complete
|
| 28 |
-
START_DATE = datetime(2023, 10, 1, tzinfo=timezone(timedelta(hours=9)))
|
| 29 |
END_DATE = datetime(2023, 11, 10, tzinfo=timezone(timedelta(hours=9)))
|
| 30 |
|
| 31 |
|
|
@@ -301,9 +299,10 @@ def leaderboard():
|
|
| 301 |
|
| 302 |
# Repos that should not be included in the leaderboard
|
| 303 |
not_included = [
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
|
|
|
| 307 |
]
|
| 308 |
|
| 309 |
contributions = defaultdict(list)
|
|
@@ -325,9 +324,9 @@ def leaderboard():
|
|
| 325 |
user_likes += likes
|
| 326 |
leaderboard.append([make_clickable_user(user), '- ' + '\n- '.join(repos), user_likes])
|
| 327 |
|
| 328 |
-
df = pd.DataFrame(data=leaderboard, columns=["User", "Contributions", "Likes"])
|
| 329 |
-
df.sort_values(by=["Likes"], ascending=False, inplace=True)
|
| 330 |
-
df.insert(0, "Rank", list(range(1, len(df) + 1)))
|
| 331 |
|
| 332 |
return df
|
| 333 |
|
|
|
|
| 23 |
|
| 24 |
ORGANIZATION = "pseudolab"
|
| 25 |
|
| 26 |
+
START_DATE = datetime(2023, 10, 20, tzinfo=timezone(timedelta(hours=9)))
|
|
|
|
|
|
|
| 27 |
END_DATE = datetime(2023, 11, 10, tzinfo=timezone(timedelta(hours=9)))
|
| 28 |
|
| 29 |
|
|
|
|
| 299 |
|
| 300 |
# Repos that should not be included in the leaderboard
|
| 301 |
not_included = [
|
| 302 |
+
'README',
|
| 303 |
+
'2023-Hackathon-Certification',
|
| 304 |
+
'huggingface-krew-hackathon2023',
|
| 305 |
+
# template repos as well
|
| 306 |
]
|
| 307 |
|
| 308 |
contributions = defaultdict(list)
|
|
|
|
| 324 |
user_likes += likes
|
| 325 |
leaderboard.append([make_clickable_user(user), '- ' + '\n- '.join(repos), user_likes])
|
| 326 |
|
| 327 |
+
df = pd.DataFrame(data=leaderboard, columns=["User 👤", "Contributions 🛠️", "Likes ❤️"])
|
| 328 |
+
df.sort_values(by=["Likes ❤️"], ascending=False, inplace=True)
|
| 329 |
+
df.insert(0, "Rank 🏆", list(range(1, len(df) + 1)))
|
| 330 |
|
| 331 |
return df
|
| 332 |
|