From 914a6154fac5929e89f5cddf44ff7bda723f2026 Mon Sep 17 00:00:00 2001 From: Ahmad kamaran <69410964+hamoshwani@users.noreply.github.com> Date: Wed, 17 May 2023 16:30:16 +0300 Subject: [PATCH] Update creds Fix AttributeError when `keyword` is an integer --- creds | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/creds b/creds index d951d00..cb6314e 100755 --- a/creds +++ b/creds @@ -97,9 +97,9 @@ def search(keyword,export=False): """ if len(db.all()) == 0: get_db() - print_table(db.search(where("product").search(keyword.lower())),keyword,export) + print_table(db.search(where("product").search(str(keyword).lower())),keyword,export) else: - print_table(db.search(where("product").search(keyword.lower())),keyword,export) + print_table(db.search(where("product").search(str(keyword).lower())),keyword,export) def sha256sum(filename): """ @@ -123,4 +123,4 @@ def update(): print('[+] No action needed, We are fine 🤘') if sha256sum('/tmp/DefaultCreds_db.json') == sha256sum(f"{path}/DefaultCreds_db.json") else get_db(path,"New updates are available 🚧\n[+] Download database...") if __name__ == "__main__": - fire.Fire() \ No newline at end of file + fire.Fire()