File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3030LOGGER , PATHS = shared .setup (__file__ )
3131
3232# Constants
33+ BASE_URL = "https://collections.museumsvictoria.com.au/api/search"
3334FILE_RECORDS = os .path .join (PATHS ["data_phase" ], "museums_raw.csv" )
3435HEADER_RECORDS = [
3536 "ID" ,
3839 "CONTENT LICENCE SHORT NAME" ,
3940 "MEDIA JSON" ,
4041]
42+ MAX_PER_PAGE = 100 # Pagination limit as defined by the API documentation
4143QUARTER = os .path .basename (PATHS ["data_quarter" ])
42- BASE_URL = "https://collections.museumsvictoria.com.au/api/search"
4344RECORD_TYPES = [
4445 "article" ,
4546 "item" ,
4647 "species" ,
4748 "specimen" ,
4849] # Type of record to return
49- MAX_PER_PAGE = 100 # Pagination limit as defined by the API documentation
5050
5151
5252def parse_arguments ():
@@ -196,7 +196,8 @@ def main():
196196 args = parse_arguments ()
197197 shared .paths_log (LOGGER , PATHS )
198198 shared .git_fetch_and_merge (args , PATHS ["repo" ])
199- fetch_museums_victoria_data (args , get_requests_session ())
199+ session = get_requests_session ()
200+ fetch_museums_victoria_data (args , session )
200201 args = shared .git_add_and_commit (
201202 args ,
202203 PATHS ["repo" ],
You can’t perform that action at this time.
0 commit comments