Skip to content

Commit

Permalink
not stop when just -g used
Browse files Browse the repository at this point in the history
  • Loading branch information
pesekon2 committed Aug 6, 2017
1 parent 2505c2a commit 5f4edf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion r.in.sos/r.in.sos.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def main():
service = SensorObservationService(options['url'],
version=options['version'])

if any(flags.itervalues()) and flags['f'] is False:
if any(value is True and key in [
'o', 'v', 'p', 't'] for key, value in flags.iteritems()):
get_description(service)

if options['offering'] == '' or options['output'] == '':
Expand Down
3 changes: 2 additions & 1 deletion v.in.sos/v.in.sos.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def main():
service = SensorObservationService(options['url'],
version=options['version'])

if any(flags.itervalues()):
if any(value is True and key in [
'o', 'v', 'p', 't'] for key, value in flags.iteritems()):
get_description(service)

if options['offering'] == '' or options['output'] == '':
Expand Down

0 comments on commit 5f4edf6

Please sign in to comment.