-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duplicate users in search page
- Loading branch information
Showing
22 changed files
with
415 additions
and
870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
loginDatabase = {} | ||
userInfoDatabase = {} | ||
userKeyPairDatabase = {} | ||
userListDatabase = [] | ||
userListDatabase = {} | ||
|
||
def getUserLoginDatabase(email): | ||
if email not in loginDatabase: | ||
|
@@ -39,12 +39,12 @@ def getUserListDatabase(): | |
return userListDatabase | ||
|
||
def setUserListDatabase(email, name, position): | ||
new_user = { | ||
# if email not in userListDatabase: | ||
userListDatabase[email] = { | ||
"email": email, | ||
"name": name, | ||
"position": position | ||
} | ||
userListDatabase.append(new_user) | ||
|
||
|
||
if __name__ == "__main__": | ||
|
@@ -65,16 +65,17 @@ def setUserListDatabase(email, name, position): | |
"CX62ckRaUucsVi3cbxCkSAcxR7zsBBNSPPrEHz26X4vz": "DZBpCfHDsQhvy9vLkcRKYskfSaXwrGQTfzzKVJTvzQN9" | ||
} | ||
|
||
userListDatabase = [ | ||
{ | ||
|
||
userListDatabase = { | ||
"[email protected]": { | ||
"email": "[email protected]", | ||
"name": "Jack", | ||
"position": "Software Engineer" | ||
}, | ||
{ | ||
"[email protected]": { | ||
"email": "[email protected]", | ||
"name": "Elliot", | ||
"position": "Software Engineer" | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,15 @@ | |
"contact": { | ||
"address": { | ||
"faIcon": "fa-solid fa-city", | ||
"href": null, | ||
"href": "", | ||
"id": "address", | ||
"value": "123 Main Street, Cupertino, CA 01234", | ||
"value": "1440 Wake Forest Drive, Davis CA", | ||
"valueShort": "Cupertino, CA 01234" | ||
}, | ||
"email": { | ||
"faIcon": "fa-solid fa-envelope", | ||
"href": "mailto:[email protected]", | ||
"id": "email", | ||
"value": "[email protected]", | ||
"valueShort": "[email protected]" | ||
}, | ||
"facebook": { | ||
|
@@ -46,28 +45,15 @@ | |
"faIcon": "fa-solid fa-phone", | ||
"href": "tel:1234567890", | ||
"id": "phone", | ||
"value": "+1 (123) 456-7890", | ||
"valueShort": "(123) 456-7890" | ||
"value": "+1 (123) 456-7890" | ||
} | ||
}, | ||
"locales": { | ||
"en": { | ||
"credits": "Designed by <strong><a class='light' href='https://github.com/ryanbalieiro'>Ryan Balieiro</a></strong>", | ||
"role": "UX Designer" | ||
}, | ||
"es": { | ||
"credits": "", | ||
"role": "" | ||
}, | ||
"fr": { | ||
"credits": "", | ||
"role": "" | ||
}, | ||
"zh": { | ||
"credits": "", | ||
"role": "" | ||
"role": "Software Engineer" | ||
} | ||
}, | ||
"name": "Jonas ", | ||
"name": "Jack Chen", | ||
"profilePictureUrl": "images/pictures/avatar.png" | ||
} |
Oops, something went wrong.