Spaces:
Build error
Build error
Gosse Minnema commited on
Commit ·
cb6b664
1
Parent(s): 8149663
Various bugfixes
Browse files- .gitignore +0 -1
- deploy.py +0 -3
- fillmorle/app.py +2 -0
.gitignore
CHANGED
|
@@ -5,7 +5,6 @@
|
|
| 5 |
|
| 6 |
# User-specific stuff
|
| 7 |
.idea/
|
| 8 |
-
data
|
| 9 |
cache
|
| 10 |
|
| 11 |
# Gradle and Maven with auto-import
|
|
|
|
| 5 |
|
| 6 |
# User-specific stuff
|
| 7 |
.idea/
|
|
|
|
| 8 |
cache
|
| 9 |
|
| 10 |
# Gradle and Maven with auto-import
|
deploy.py
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
import runpy
|
| 2 |
-
|
| 3 |
-
runpy.run_module("fillmorle.app", run_name="__main__", alter_sys=True)
|
|
|
|
|
|
|
|
|
|
|
|
fillmorle/app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
from itertools import product
|
| 2 |
import random
|
|
|
|
| 3 |
from turtle import hideturtle
|
| 4 |
import requests
|
| 5 |
import json
|
|
@@ -146,6 +147,7 @@ def has_enough_lus(frame, n=10):
|
|
| 146 |
def choose_secret_frames():
|
| 147 |
event_frames = [frm for frm in find_all_inheriting_frames("Event") if has_enough_lus(frm)]
|
| 148 |
entity_frames = [frm for frm in find_all_inheriting_frames("Entity") if has_enough_lus(frm)]
|
|
|
|
| 149 |
return random.choice(list(product(event_frames, entity_frames)))
|
| 150 |
|
| 151 |
|
|
|
|
| 1 |
from itertools import product
|
| 2 |
import random
|
| 3 |
+
import time
|
| 4 |
from turtle import hideturtle
|
| 5 |
import requests
|
| 6 |
import json
|
|
|
|
| 147 |
def choose_secret_frames():
|
| 148 |
event_frames = [frm for frm in find_all_inheriting_frames("Event") if has_enough_lus(frm)]
|
| 149 |
entity_frames = [frm for frm in find_all_inheriting_frames("Entity") if has_enough_lus(frm)]
|
| 150 |
+
random.seed(time.time() // 86400)
|
| 151 |
return random.choice(list(product(event_frames, entity_frames)))
|
| 152 |
|
| 153 |
|