File tree 3 files changed +18
-19
lines changed
3 files changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -34,5 +34,9 @@ selfdrive/test/tests/plant/out
34
34
selfdrive /visiond /visiond
35
35
selfdrive /visiond /visiond-normal
36
36
/src /
37
+ apk /ai.comma.plus.offroad.apk
38
+ openpilot
39
+ selfdrive /data_collection /df-data
40
+ selfdrive /data_collection /gps-data
37
41
38
42
one
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def waitForConnection():
37
37
38
38
if not path_exists :
39
39
print "%s does not exist, installing" % apk_dir
40
- waitForconnection ()
40
+ waitForConnection ()
41
41
os .system ("curl -L %s | python" % install_script )
42
42
else :
43
43
print "APK already installed"
Original file line number Diff line number Diff line change @@ -21,35 +21,30 @@ def install():
21
21
from raven import Client
22
22
from raven .transport .http import HTTPTransport
23
23
24
- error_tags = {'dirty' : dirty , 'branch ' : 'unknown ' }
24
+ error_tags = {'dirty' : dirty , 'username ' : 'char_error ' }
25
25
26
26
try :
27
27
with open ("/data/data/ai.comma.plus.offroad/files/persistStore/persist-auth" , "r" ) as f :
28
28
auth = json .loads (f .read ())
29
29
auth = json .loads (auth ['commaUser' ])
30
- try :
31
- error_tags ['username' ] = '' .join (char for char in auth ['username' ].decode ('utf-8' , 'ignore' ) if char .isalnum ())
32
- except :
33
- error_tags ['username' ] = "char_error"
34
- try :
35
- error_tags ['email' ] = auth ['email' ]
36
- except :
37
- pass
30
+ tags = ['username' , 'email' ]
31
+ for tag in tags :
32
+ try :
33
+ error_tags [tag ] = '' .join (char for char in auth [tag ].decode ('utf-8' , 'ignore' ) if char .isalnum ())
34
+ except :
35
+ pass
38
36
except :
39
37
pass
40
38
41
39
try :
42
40
with open ("/data/params/d/CommunityPilotUser" , "r" ) as f :
43
41
auth = json .loads (f .read ())
44
-
45
- try :
46
- error_tags ['username' ] = '' .join (char for char in auth ['username' ].decode ('utf-8' , 'ignore' ) if char .isalnum ())
47
- except :
48
- error_tags ['username' ] = "char_error"
49
- try :
50
- error_tags ['email' ] = auth ['email' ]
51
- except :
52
- pass
42
+ tags = ['username' , 'email' ]
43
+ for tag in tags :
44
+ try :
45
+ error_tags [tag ] = '' .join (char for char in auth [tag ].decode ('utf-8' , 'ignore' ) if char .isalnum ())
46
+ except :
47
+ pass
53
48
except :
54
49
pass
55
50
You can’t perform that action at this time.
0 commit comments