update cli scripts to use REST API
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
This commit is contained in:
@@ -128,11 +128,6 @@ if __name__ == "__main__":
|
||||
apiConfig = get_api_config(log, args.config)
|
||||
server: Server = apiConfig.server[0]
|
||||
data = server.request(log=log, table="media_file", param=Option(OptionType.PARAM, "download=true"))
|
||||
# url: str = f"http://{host}:{port}/api/media/files?download=true"
|
||||
# headers: Dict[str, str] = {"Authorization": f"Bearer {token}"}
|
||||
# response = requests.get(url, headers=headers)
|
||||
# log.info(f"Status: {response.status_code}")
|
||||
# data = response.json()
|
||||
entries_count = len(data)
|
||||
log.info(f"data: {entries_count}")
|
||||
mediafile_index = 1
|
||||
|
||||
Reference in New Issue
Block a user