Skip to content

Commit

Permalink
#15: Add is_generate_swagger to config class
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Aug 5, 2019
1 parent 468bf73 commit cd1668d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@ def is_debug_mode(self):
except:
sys.exit("Missing config value, debug_mode")

def is_generate_swagger(self):
try:
return self.config["generate_swagger"]
except:
sys.exit("Missing config value, generate_swagger")

config = Config()

0 comments on commit cd1668d

Please sign in to comment.