geo accuracy on config
This commit is contained in:
@@ -38,8 +38,9 @@ optionalArgs.add_argument('-d', '--debug', action='store_true')
|
|||||||
|
|
||||||
optionalArgs.add_argument('-c', '--config', help="Rúta al archivo de configuración")
|
optionalArgs.add_argument('-c', '--config', help="Rúta al archivo de configuración")
|
||||||
optionalArgs.add_argument('-u', '--user', help="Usuario")
|
optionalArgs.add_argument('-u', '--user', help="Usuario")
|
||||||
optionalArgs.add_argument('-glo', '--geoLongitude', help="Longitud")
|
optionalArgs.add_argument('-glo', '--geoLongitude', help="GEO Longitud")
|
||||||
optionalArgs.add_argument('-gla', '--geoLatitude', help="Latitud")
|
optionalArgs.add_argument('-gla', '--geoLatitude', help="GEO Latitud")
|
||||||
|
optionalArgs.add_argument('-ga', '--geoAccuracy', help="GEO Accuracy")
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
@@ -75,6 +76,8 @@ class AutoFicher():
|
|||||||
self.config['geo']['longitude'] = args.geoLongitude
|
self.config['geo']['longitude'] = args.geoLongitude
|
||||||
if args.user:
|
if args.user:
|
||||||
self.config['user'] = args.user
|
self.config['user'] = args.user
|
||||||
|
if args.geoAccuracy:
|
||||||
|
self.config['geo']['accuracy'] = args.geoAccuracy
|
||||||
|
|
||||||
print(self.config)
|
print(self.config)
|
||||||
|
|
||||||
|
|||||||
@@ -16,13 +16,13 @@
|
|||||||
],
|
],
|
||||||
"api_url": "https://timenet.gpisoftware.com/api/",
|
"api_url": "https://timenet.gpisoftware.com/api/",
|
||||||
"telegram": {
|
"telegram": {
|
||||||
"token": "",
|
"token": "1355326821:ag66g6g6g6e6ge4-avvv45g6egse567",
|
||||||
"chat_id": 0
|
"chat_id": 12878473
|
||||||
},
|
},
|
||||||
"geo": {
|
"geo": {
|
||||||
"latitude": 0,
|
"latitude": 1.3908992,
|
||||||
"longitude": 0,
|
"longitude": 5.154496,
|
||||||
"accuracy": 0
|
"accuracy": 98.31
|
||||||
},
|
},
|
||||||
"user": "4c26cc59-ee52-4c47-b7fe-1065a5e5bf84"
|
"user": "4c26cc59-ee52-4c47-b7fe-1065a5e5bf84"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user