From 81eb77b6bed21ea63fb76118e3a79b0b87399b02 Mon Sep 17 00:00:00 2001 From: Siddhesh Agarwal Date: Thu, 6 Apr 2023 09:17:54 +0530 Subject: [PATCH] improved messages --- app.py | 3 ++- auth/custom_user_data.json | 3 --- auth/providers.json | 7 ------- data_sources/mongodb-atlas/config.json | 10 ---------- environments/development.json | 3 --- environments/no-environment.json | 3 --- environments/production.json | 3 --- environments/qa.json | 3 --- environments/testing.json | 3 --- functions/config.json | 1 - graphql/config.json | 3 --- http_endpoints/config.json | 1 - sync/config.json | 3 --- 13 files changed, 2 insertions(+), 44 deletions(-) delete mode 100644 auth/custom_user_data.json delete mode 100644 auth/providers.json delete mode 100644 data_sources/mongodb-atlas/config.json delete mode 100644 environments/development.json delete mode 100644 environments/no-environment.json delete mode 100644 environments/production.json delete mode 100644 environments/qa.json delete mode 100644 environments/testing.json delete mode 100644 functions/config.json delete mode 100644 graphql/config.json delete mode 100644 http_endpoints/config.json delete mode 100644 sync/config.json diff --git a/app.py b/app.py index 4b0d5b4..cf3850e 100644 --- a/app.py +++ b/app.py @@ -63,9 +63,10 @@ def get_location(ip_address: str) -> dict: with st.spinner("Checking database..."): # check if domain exists if collection.find_one({"domain": domain}): - st.info(f"Domain {domain} already exists in the database") + st.info(f"Domain already exists in the database") else: collection.insert_one({"domain": domain, "ip_address": ip_address}) + st.info(f"Domain added to the database") with tabs[1]: diff --git a/auth/custom_user_data.json b/auth/custom_user_data.json deleted file mode 100644 index a82d0fb..0000000 --- a/auth/custom_user_data.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "enabled": false -} diff --git a/auth/providers.json b/auth/providers.json deleted file mode 100644 index e47c4d4..0000000 --- a/auth/providers.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "api-key": { - "name": "api-key", - "type": "api-key", - "disabled": true - } -} diff --git a/data_sources/mongodb-atlas/config.json b/data_sources/mongodb-atlas/config.json deleted file mode 100644 index 9913676..0000000 --- a/data_sources/mongodb-atlas/config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "mongodb-atlas", - "type": "mongodb-atlas", - "config": { - "clusterName": "Cluster0", - "readPreference": "primary", - "wireProtocolEnabled": false - }, - "version": 1 -} diff --git a/environments/development.json b/environments/development.json deleted file mode 100644 index ad7e98e..0000000 --- a/environments/development.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "values": {} -} diff --git a/environments/no-environment.json b/environments/no-environment.json deleted file mode 100644 index ad7e98e..0000000 --- a/environments/no-environment.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "values": {} -} diff --git a/environments/production.json b/environments/production.json deleted file mode 100644 index ad7e98e..0000000 --- a/environments/production.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "values": {} -} diff --git a/environments/qa.json b/environments/qa.json deleted file mode 100644 index ad7e98e..0000000 --- a/environments/qa.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "values": {} -} diff --git a/environments/testing.json b/environments/testing.json deleted file mode 100644 index ad7e98e..0000000 --- a/environments/testing.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "values": {} -} diff --git a/functions/config.json b/functions/config.json deleted file mode 100644 index fe51488..0000000 --- a/functions/config.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/graphql/config.json b/graphql/config.json deleted file mode 100644 index c1d7285..0000000 --- a/graphql/config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "use_natural_pluralization": true -} diff --git a/http_endpoints/config.json b/http_endpoints/config.json deleted file mode 100644 index fe51488..0000000 --- a/http_endpoints/config.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/sync/config.json b/sync/config.json deleted file mode 100644 index 7c96b61..0000000 --- a/sync/config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "development_mode_enabled": false -}