Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit 40914fc

Browse files
committed
Delete debug
2 parents da76168 + 7c7f2eb commit 40914fc

6 files changed

Lines changed: 18 additions & 20 deletions

File tree

daita/daita.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44

55
parser = argparse.ArgumentParser(description="Optional app description")
6-
parser.add_argument("--dir", type=str,
7-
help="A required integer positional argument")
6+
parser.add_argument("--dir", type=str, help="A required integer positional argument")
87
parser.add_argument(
98
"--daita_token", type=str, help="A required integer positional argument"
109
)

daita/dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from daita.upload_zip import dashboardCompressFiles
99
from daita.footer import footer
1010

11-
checkDaitaTokenEndpoint = os.environ['DAITA_TOKEN']
11+
checkDaitaTokenEndpoint = os.environ["DAITA_TOKEN"]
1212

1313

1414
def validFileImage(filename):

daita/load_env.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
from dotenv import load_dotenv
22
from pathlib import Path
33
import os
4+
45
pwd = os.path.dirname(os.path.abspath(__file__))
5-
envfile = os.path.join(pwd, '.env.development')
6+
envfile = os.path.join(pwd, ".env.development")
67
dotenv_path = Path(envfile)
78
load_dotenv(dotenv_path=dotenv_path)
9+
<<<<<<< HEAD
10+
=======
11+
print(os.environ["DAITA_TOKEN"])
12+
>>>>>>> 7c7f2eb925721b410763da809e8baec411f35b62

daita/upload_images.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
batch_size = 10
1414
###### the endpoint for dev enviroment#######################################################################################
15-
endpointPresignURL = os.environ['PRESIGN_URL']
16-
endpointCheckExistenceFile = os.environ['CHECK_EXISTENCE_FILE']
15+
endpointPresignURL = os.environ["PRESIGN_URL"]
16+
endpointCheckExistenceFile = os.environ["CHECK_EXISTENCE_FILE"]
1717
#############################################################################################################################
1818

1919
daita_token = None
@@ -91,13 +91,11 @@ def checkExistenceFile(filenames, daita_token):
9191

9292
payload = {"ls_filename": basenamefilenames, "daita_token": daita_token}
9393

94-
RespcheckExistenceFile = requests.post(
95-
endpointCheckExistenceFile, json=payload)
94+
RespcheckExistenceFile = requests.post(endpointCheckExistenceFile, json=payload)
9695

9796
ResultcheckExistenceFile = RespcheckExistenceFile.json()
9897
if ResultcheckExistenceFile["error"] == True:
99-
print(
100-
f"Something went wrong with {ResultcheckExistenceFile['message']}")
98+
print(f"Something went wrong with {ResultcheckExistenceFile['message']}")
10199
os._exit(1)
102100

103101
if len(ResultcheckExistenceFile["data"]) == 0:

daita/upload_zip.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
import requests
33
from daita.footer import footer
44

5-
endpointCreatePresignUrlSinglefile = os.environ['CREATE_PRESIGN_SIGNLE_URL']
6-
endpointUploadCompressfile = os.environ['UPLOAD_COMPRESS_FILE']
5+
endpointCreatePresignUrlSinglefile = os.environ["CREATE_PRESIGN_SIGNLE_URL"]
6+
endpointUploadCompressfile = os.environ["UPLOAD_COMPRESS_FILE"]
77

88

99
def upload_compress_file(filename, daita_token):
1010
resp = requests.post(
1111
endpointCreatePresignUrlSinglefile,
12-
json={"filename": os.path.basename(
13-
filename), "daita_token": daita_token},
12+
json={"filename": os.path.basename(filename), "daita_token": daita_token},
1413
)
1514
preSignUrlResult = resp.json()["data"]
1615
s3_uri = preSignUrlResult["s3_uri"]
@@ -21,8 +20,7 @@ def upload_compress_file(filename, daita_token):
2120
files=files,
2221
)
2322
responseTask = requests.post(
24-
endpointUploadCompressfile, json={
25-
"s3": s3_uri, "daita_token": daita_token}
23+
endpointUploadCompressfile, json={"s3": s3_uri, "daita_token": daita_token}
2624
)
2725
data = responseTask.json()
2826
task_id = data["data"]["data"]["task_id"]

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@ def load_description(path_dir=PATH_ROOT, filename="README.md"):
5252
license=license,
5353
long_description=long_description,
5454
long_description_content_type="text/markdown",
55-
packages=['daita'],
55+
packages=["daita"],
5656
install_requires=install_requires,
5757
entry_points=entry_points,
5858
classifiers=classifiers,
5959
python_requires=python_requires,
6060
project_urls=project_urls,
61-
package_data={
62-
'daita': ['*', '.env.development']
63-
}
61+
package_data={"daita": ["*", ".env.development"]},
6462
)

0 commit comments

Comments
 (0)