From 8339419c46891ef7e754cdd2a901b75be049d14e Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Sun, 13 Nov 2022 16:04:24 +0100 Subject: [PATCH] Update docs --- fiable_db.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fiable_db.py b/fiable_db.py index b85a6fa..028afb0 100644 --- a/fiable_db.py +++ b/fiable_db.py @@ -55,11 +55,13 @@ def add( def update( - new_data: dict | list, table: str = "", force: bool = False + id: int, + new_data: dict, table: str = "", force: bool = False ) -> dict[int, int, dict]: """Update data in the database Args: - new_data (dict|list): The data to update + id (int): The id of the data to update. + new_data (dict): The data to update table (str, optional): The table to update. Defaults to "". force (bool, optional): Force the update. Defaults to False. Returns: