Skip to content

Commit ed0de44

Browse files
committed
Changed name of python function to export_csv
1 parent 8465bd0 commit ed0de44

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

api/.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
22
max-line-length = 120
3-
exclude = .git,__pycache__,__init__.py,.mypy_cache,.pytest_cache,venv,build,src/feeds_gen,src/shared/database_gen
3+
exclude = .git,__pycache__,__init__.py,.mypy_cache,.pytest_cache,venv,build,feeds_gen,database_gen
44
# Ignored because conflict with black
55
extend-ignore = E203

functions-python/create_csv/function_config.json renamed to functions-python/export_csv/function_config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "create-csv",
3-
"description": "Create a csv of all feeds",
4-
"entry_point": "create_csv",
3+
"description": "Export a csv of feeds in the DB",
4+
"entry_point": "export_csv",
55
"timeout": 20,
66
"memory": "256Mi",
77
"trigger_http": true,
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def write_csv(self, csv_file_path):
6363

6464

6565
@functions_framework.http
66-
def create_csv(request=None):
66+
def export_csv(request=None):
6767
"""
6868
HTTP Function entry point Reads the DB and outputs a csv file with feeds data.
6969
This function requires the following environment variables to be set:
@@ -318,7 +318,7 @@ def main():
318318
)
319319
args = parser.parse_args()
320320
csv_file_path = args.outpath if args.outpath else csv_default_file_path
321-
create_csv()
321+
export_csv()
322322

323323

324324
if __name__ == "__main__":
File renamed without changes.

functions-python/create_csv/tests/test_batch_datasets_main.py renamed to functions-python/export_csv/tests/test_batch_datasets_main.py

File renamed without changes.

0 commit comments

Comments
 (0)