def update_user_nodes(self, groupme: GroupMe):
     groups = groupme.get_groups_index()
     members = None
     for group in groups:
         if int(group["id"]) == groupme.get_group():
             members = group["members"]
     for member in members:
         properties = "{"
         for key, value in member.items():
             if value is not None:
                 properties += f"{key}: {repr(value)}, "
         properties = properties[:-2] + "}"
         query = f"merge (u:User {properties})"
         self.graph.run(cypher=query)
def index():
    gm = GroupMe(api_token=os.environ["GROUPME_ACCESS_TOKEN"])
    groups = gm.get_groups_index()
    return render_template("index.html", groups=groups)