Skip to content

Commit

Permalink
Ask for station update if a API<->DB diff is encountered.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgol committed Jul 8, 2016
1 parent 8458893 commit bcd8fab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ Frontier provides an API for their mobile app. This can be used to report accura
name: Do not obfuscate commander name for EDDN submit.
save: Save the API response (tmp/profile.YYYYMMDD_HHMMSS.json).
test: Test the plugin with a json file (test=[FILENAME]).
warn: Ask for station update if a API<->DB diff is encountered.

##Elite Dangerous netLog parser import plugin:

Expand Down
3 changes: 2 additions & 1 deletion plugins/edapi_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ class ImportPlugin(plugins.ImportPluginBase):
'edcd': 'Call the EDCD plugin first',
'eddn': 'Post market, shipyard and outfitting to EDDN.',
'test': 'Test the plugin with a json file (test=[FILENAME]).',
'warn': 'Ask for station update if a API<->DB diff is encountered.',
}

cookieFile = "edapi.cookies"
Expand Down Expand Up @@ -444,7 +445,7 @@ def warnAPIResponse(checkName, checkYN):
s, d = "n't", ""

tdenv.WARN(warnText, what=checkName, s=s, d=d)
return True
return self.getOption('warn')

if not station:
print('Station unknown.')
Expand Down

0 comments on commit bcd8fab

Please sign in to comment.