Skip to content

Commit

Permalink
Merge pull request #18 from oslokommune/agresso-api-updates
Browse files Browse the repository at this point in the history
Update some of the Agresso API specs
  • Loading branch information
simenheg authored May 23, 2024
2 parents 5105e30 + 298db3b commit e963d2a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion agresso/data/search_criteria/81661.json

This file was deleted.

1 change: 0 additions & 1 deletion agresso/data/search_criteria/81662.json

This file was deleted.

1 change: 1 addition & 0 deletions agresso/data/search_criteria/86289.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"fromValue": "W", "toValue": "", "dataCase": 2, "dataType": 10, "restrictionType": "=", "isParameter": true, "dataLength": 1, "isPrompt": false, "description": "Status arbeidsflyt", "isVisible": true, "columnName": "wf_state", "relDateCrit": ""}, {"fromValue": "96", "toValue": "", "dataCase": 2, "dataType": 10, "restrictionType": "=", "isParameter": true, "dataLength": 25, "isPrompt": false, "description": "Firma", "isVisible": false, "columnName": "client", "relDateCrit": ""}, {"fromValue": "", "toValue": "", "dataCase": 0, "dataType": 8, "restrictionType": "<=", "isParameter": true, "dataLength": 12, "isPrompt": false, "description": "Oppdatert", "isVisible": false, "columnName": "last_update", "relDateCrit": ""}, {"fromValue": "", "toValue": "", "dataCase": 0, "dataType": 8, "restrictionType": ">=", "isParameter": true, "dataLength": 12, "isPrompt": false, "description": "Oppdatert", "isVisible": false, "columnName": "last_update", "relDateCrit": ""}, {"fromValue": "", "toValue": "", "dataCase": 0, "dataType": 3, "restrictionType": "=", "isParameter": true, "dataLength": 10, "isPrompt": false, "description": "Periode", "isVisible": false, "columnName": "period", "relDateCrit": ""}, {"fromValue": "", "toValue": "", "dataCase": 0, "dataType": 3, "restrictionType": ">=", "isParameter": true, "dataLength": 10, "isPrompt": true, "description": "Periode", "isVisible": false, "columnName": "period", "relDateCrit": ""}]
1 change: 1 addition & 0 deletions agresso/data/search_criteria/88112.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"fromValue": "96", "toValue": "", "dataCase": 2, "dataType": 10, "restrictionType": "=", "isParameter": true, "dataLength": 25, "isPrompt": false, "description": "Firma", "isVisible": true, "columnName": "client", "relDateCrit": ""}, {"fromValue": "", "toValue": "", "dataCase": 0, "dataType": 8, "restrictionType": "<=", "isParameter": true, "dataLength": 12, "isPrompt": false, "description": "Oppdatert", "isVisible": true, "columnName": "last_update", "relDateCrit": ""}, {"fromValue": "", "toValue": "", "dataCase": 0, "dataType": 8, "restrictionType": ">=", "isParameter": true, "dataLength": 12, "isPrompt": false, "description": "Oppdatert", "isVisible": true, "columnName": "last_update", "relDateCrit": ""}, {"fromValue": "", "toValue": "", "dataCase": 2, "dataType": 3, "restrictionType": "=", "isParameter": true, "dataLength": 10, "isPrompt": false, "description": "Periode", "isVisible": false, "columnName": "period", "relDateCrit": ""}, {"fromValue": "", "toValue": "", "dataCase": 2, "dataType": 3, "restrictionType": ">=", "isParameter": true, "dataLength": 10, "isPrompt": false, "description": "Periode", "isVisible": false, "columnName": "period", "relDateCrit": ""}]
4 changes: 2 additions & 2 deletions agresso/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ def _enrich_voucher_url(row):

# Dataset `arbeidsflyt-levfakt-wf68`
def get_workflow_contrator_invoices():
return get_results("81661")
return filter_results(get_results("88112"), {"_recno": "^1$"})


# Dataset `brukerlog-levfakt-wF80`
def get_user_log_contractor_invoices():
return get_results("81662")
return get_results("86289")


# Dataset `arbeidsflytkommentar-parkert`
Expand Down

0 comments on commit e963d2a

Please sign in to comment.