in core/views.py [0:0]
def update_metadata(username, bio=None, location=None):
hash_userid = hash_function(username)
blob = bucket.get_blob(str(hash_userid) + "/profile/profile.png")
if bio is not None:
metadata = {'userid': hash_userid, "username": username, 'bio': bio}
if location is not None:
metadata = {'userid': hash_userid, "username": username, 'bio': bio, "location": location}
blob.metadata = metadata
blob.patch()
print("Metadata updated")