Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def save_state(state):
|
|
| 48 |
def claim_shard(state):
|
| 49 |
for shard, info in state["shards"].items():
|
| 50 |
if info["status"] == "pending":
|
| 51 |
-
raw_name =
|
| 52 |
raw_path = Path(RAW_DIR) / raw_name
|
| 53 |
if raw_path.exists():
|
| 54 |
info["status"] = "claimed"
|
|
|
|
| 48 |
def claim_shard(state):
|
| 49 |
for shard, info in state["shards"].items():
|
| 50 |
if info["status"] == "pending":
|
| 51 |
+
raw_name = shard_key.replace("/", "__")
|
| 52 |
raw_path = Path(RAW_DIR) / raw_name
|
| 53 |
if raw_path.exists():
|
| 54 |
info["status"] = "claimed"
|