Commit a6213463 authored by Alexander Lercher's avatar Alexander Lercher

not showing username anymore

parent 4ebd6230
......@@ -119,7 +119,7 @@ definitions:
id:
type: string
format: uuid
username:
user:
type: "string"
latitude:
type: "number"
......@@ -141,6 +141,6 @@ definitions:
type: number
timestamp:
type: number
username:
user:
type: string
\ No newline at end of file
import json
from typing import List, Dict
import hashlib
class AgiRepository:
def getLocations(self) -> List:
......@@ -24,7 +24,7 @@ class AgiRepository:
cur_location['coordinate']['longitude'],
cur_location['moment'],
# 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
......@@ -41,6 +41,6 @@ class AgiRepository:
'latitude': lat,
'longitude': long_,
"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