Commit a6213463 authored by Alexander Lercher's avatar Alexander Lercher

not showing username anymore

parent 4ebd6230
...@@ -119,7 +119,7 @@ definitions: ...@@ -119,7 +119,7 @@ definitions:
id: id:
type: string type: string
format: uuid format: uuid
username: user:
type: "string" type: "string"
latitude: latitude:
type: "number" type: "number"
...@@ -141,6 +141,6 @@ definitions: ...@@ -141,6 +141,6 @@ definitions:
type: number type: number
timestamp: timestamp:
type: number type: number
username: user:
type: string type: string
\ No newline at end of file
import json import json
from typing import List, Dict from typing import List, Dict
import hashlib
class AgiRepository: class AgiRepository:
def getLocations(self) -> List: def getLocations(self) -> List:
...@@ -24,7 +24,7 @@ class AgiRepository: ...@@ -24,7 +24,7 @@ class AgiRepository:
cur_location['coordinate']['longitude'], cur_location['coordinate']['longitude'],
cur_location['moment'], cur_location['moment'],
# todo user in travel startedBy not available from dataset - currently using user list # todo user in travel startedBy not available from dataset - currently using user list
cur_user['userId'] hashlib.sha1(cur_user['userId'].encode()).hexdigest() # not showing generated username
)) ))
return locations return locations
...@@ -41,6 +41,6 @@ class AgiRepository: ...@@ -41,6 +41,6 @@ class AgiRepository:
'latitude': lat, 'latitude': lat,
'longitude': long_, 'longitude': long_,
"timestamp": timestamp, "timestamp": timestamp,
"username": username "user": username
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment