Skip to content

Commit

Permalink
Standardize flag for loading specific cases (-s)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeaufort committed Sep 7, 2018
1 parent e777e63 commit 4809fe2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ python manage.py load_advisory_opinions [-f FROM_AO_NO]
#### Loading current MURs [only one MUR_NO]
```
python manage.py load_current_murs [-m MUR_NO]
python manage.py load_current_murs [-s MUR_NO]
```
#### Loading archived MURs (This takes a very long time)
Expand All @@ -597,12 +597,12 @@ python manage.py load_archived_murs [-s MUR_NO] or [-f FROM_MUR_NO]
#### Loading ADRs [only one ADR_NO]
```
python manage.py load_adrs [-c ADR_NO]
python manage.py load_adrs [-s ADR_NO]
```
#### Loading Admin Fines [only one AF_NO]
```
python manage.py load_admin_fines [-c AF_NO]
python manage.py load_admin_fines [-s AF_NO]
```
#### Reloading all current legal documents with no downtime (excludes archived MURs)
Expand Down
12 changes: 6 additions & 6 deletions webservices/legal_docs/current_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@
CASE_NO_REGEX = re.compile(r'(?P<serial>\d+)')


def load_current_murs(mur_no=None):
load_cases(mur_no, 'MUR')
def load_current_murs(specific_mur_no=None):
load_cases(specific_mur_no, 'MUR')

def load_adrs(case_no=None):
load_cases(case_no, 'ADR')
def load_adrs(specific_adr_no=None):
load_cases(specific_adr_no, 'ADR')

def load_admin_fines(case_no=None):
load_cases(case_no, 'AF')
def load_admin_fines(specific_af_no=None):
load_cases(specific_af_no, 'AF')

def get_es_type(case_type):
if case_type == 'AF':
Expand Down

0 comments on commit 4809fe2

Please sign in to comment.