Skip to content

Commit

Permalink
Fixing syntax problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnar Eivind Martinsen committed Sep 23, 2024
1 parent 285480c commit 3dd702e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- name: Syntax Error Check
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude external
- name: Code Style Check
run: flake8 . --count --max-line-length=99 --ignore E221,E226,E228,E241 --show-source --statistics --exclude external
run: flake8 . --count --max-line-length=99 --ignore E221,E226,E228,E241,W504 --show-source --statistics --exclude external
4 changes: 2 additions & 2 deletions catalog_rebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,15 @@ def rebuild_task(self, action, parentlist_path, call_distributors):
# for task in parentJob.children:
# _recurse_results(task)
logger.info("Wating a bit to make sure parents are processed")
sleep(300)
sleep(300)
"""Update fileList remove ingested parents"""
for parent in parent_mmds:
fileList.remove(parent)

self.update_state(state='PROGRESS',
meta={'current': current, 'total': total,
'status': 'Processing MMD files'})
#sleep(750)
# sleep(750)
"""Then we ingest all other datasets"""
mmdJob = group(dmci_dist_ingest_task.s(file, action, call_distributors)
for file in fileList)()
Expand Down
2 changes: 1 addition & 1 deletion check_csw.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def checkParents(parentList, csw_url):
# print(f"{parent}: CSW search for children is failing!")
return False
else:
m = re.search(".*numberOfRecordsMatched\=\"(\d+)\".*", r.text)
m = re.search(r".*numberOfRecordsMatched=\"(\d+)\".*", r.text)
if not m:
return False

Expand Down
3 changes: 0 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import os
import sys
import uuid
import shutil
import pytest

Expand Down Expand Up @@ -76,8 +75,6 @@ def fncDir(tmpDir):
# Mock Files
##



##
# Objects
##

0 comments on commit 3dd702e

Please sign in to comment.