diff --git a/README.md b/README.md index 2c46efe..adb4375 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Production: [https://electrofishing-query.ugrc.utah.gov](https://electrofishing- - Update Parameters -> Max Number of Records Returns from 1000 to 5000. 1. Publish `scripts/Download.tbx/Download` as `Electrofishing/Download`: - asynchronous + - message level: "info" - max time a client can use the service: `300` - Copy `scripts/swq_secrets.py`, `scripts/__init__.py`, `scripts/download.py`, & `scripts/sql/*` to `C:\arcgisserver\directories\arcgissystem\arcgisinput\Electrofishing\Download.GPServer\extracted\p20\scripts` - Update `swq_secrets.py` to reflect the environment that you have published to. diff --git a/scripts/download.py b/scripts/download.py index e39b6f3..ba46e28 100644 --- a/scripts/download.py +++ b/scripts/download.py @@ -115,7 +115,7 @@ def copy_related_tables(dataset): arcpy.AddMessage('copying {} table'.format(destination)) where = f'{foreign_key} IN (SELECT {primary_key} FROM {secrets.DATABASE}.{secrets.USERNAME}.{dataset} where {events_where})' layer = arcpy.management.MakeTableView(join(sde, destination), destination + '_layer', where) - arcpy.management.CopyRows(layer, join(fgdb, destination)) + arcpy.management.CopyRows(layer, join(fgdb, destination.split('.')[-1])) if arcpy.Exists(join(fgdb, relationship_class.split('.')[-1])): continue