Spaces:
Running
Running
cookie fix
Browse files
app.py
CHANGED
|
@@ -732,7 +732,6 @@ def get_leaderboard(reveal_prelim = False):
|
|
| 732 |
if reveal_prelim and len(top_five) < 5:
|
| 733 |
top_five.append(orig_name)
|
| 734 |
|
| 735 |
-
print(top_five)
|
| 736 |
df = df[['order', 'name', 'score', 'votes']]
|
| 737 |
return df
|
| 738 |
|
|
|
|
| 732 |
if reveal_prelim and len(top_five) < 5:
|
| 733 |
top_five.append(orig_name)
|
| 734 |
|
|
|
|
| 735 |
df = df[['order', 'name', 'score', 'votes']]
|
| 736 |
return df
|
| 737 |
|
cookie.js
CHANGED
|
@@ -18,7 +18,7 @@ window.setArenaCookie = function setArenaCookie(cname, cvalue, exdays) {
|
|
| 18 |
const d = new Date();
|
| 19 |
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
|
| 20 |
let expires = "expires=" + d.toUTCString();
|
| 21 |
-
window.document.cookie = cname + "=" + cvalue + ";" + expires + ";
|
| 22 |
}
|
| 23 |
|
| 24 |
if (window.getArenaCookie('session').length == 0)
|
|
|
|
| 18 |
const d = new Date();
|
| 19 |
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
|
| 20 |
let expires = "expires=" + d.toUTCString();
|
| 21 |
+
window.document.cookie = cname + "=" + cvalue + ";" + expires + "; path=/; SameSite=None; Secure";
|
| 22 |
}
|
| 23 |
|
| 24 |
if (window.getArenaCookie('session').length == 0)
|