add key in result json file, update data

This commit is contained in:
Lukas Mehl 2019-09-06 11:38:07 +02:00
parent 0cae85e77c
commit ade59299cf
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -162,7 +162,8 @@ def main():
if fbname is None:
fbname = "--"
if fbLikes + twtFollower + instaFollower > 0:
result.update({str(idx): [typ, level, land, kreis, stadt, fbname, fbLikes, twtname, twtFollower, instaName, instaFollower]})
key = "//".join([typ, level, land, kreis, stadt])
result.update({key: [typ, level, land, kreis, stadt, fbname, fbLikes, twtname, twtFollower, instaName, instaFollower]})
idx += 1
with open("docs/result.json", "w") as f: