mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-27 09:53:50 +08:00
connect tools
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
import requests
|
||||
API_HOST = os.getenv('API_HOST', 'https://api.commadotai.com')
|
||||
API_HOST = os.getenv('API_HOST', 'https://connect-api.duckdns.org')
|
||||
|
||||
class CommaApi():
|
||||
def __init__(self, token=None):
|
||||
|
||||
@@ -47,7 +47,7 @@ bool Route::loadFromServer() {
|
||||
|
||||
loop.exit(success ? loadFromJson(json) : 0);
|
||||
});
|
||||
http.sendRequest("https://api.commadotai.com/v1/route/" + route_.str + "/files");
|
||||
http.sendRequest("https://connect-api.duckdns.org/v1/route/" + route_.str + "/files");
|
||||
return loop.exec();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user