Spaces:
Sleeping
Sleeping
Update motion_id.py
Browse files- motion_id.py +1 -1
motion_id.py
CHANGED
|
@@ -14,7 +14,7 @@ def save_ids(ids):
|
|
| 14 |
json.dump(ids, open(DATA_FILE, "w"), indent=2)
|
| 15 |
|
| 16 |
def create_motion_id(user_name):
|
| 17 |
-
motion_id = str(uuid.uuid4())
|
| 18 |
ids = load_ids()
|
| 19 |
ids[motion_id] = {
|
| 20 |
"name": user_name,
|
|
|
|
| 14 |
json.dump(ids, open(DATA_FILE, "w"), indent=2)
|
| 15 |
|
| 16 |
def create_motion_id(user_name):
|
| 17 |
+
motion_id = str(uuid.uuid4()) # Fixed line
|
| 18 |
ids = load_ids()
|
| 19 |
ids[motion_id] = {
|
| 20 |
"name": user_name,
|