We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e235d87 commit 284eb0eCopy full SHA for 284eb0e
predict.py
@@ -68,8 +68,11 @@ def predict(
68
# Print the notes
69
print(notes)
70
71
- # Get the full absolute path of `./shared/data_dir`
72
- data_dir = "./shared/data_dir"
+ # Get the dongle ID from the route. It's everything before the first pipe.
+ dongleID = route.split("|")[0]
73
+
74
+ # Partition the data dir by the dongle ID from the route
75
+ data_dir = os.path.join("./shared/data_dir", dongleID)
76
77
if renderType == "ui":
78
# Download the route data
0 commit comments