Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Improves
Browse files Browse the repository at this point in the history
  • Loading branch information
FeeiCN committed Aug 4, 2016
1 parent adc6127 commit 7aa05d6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Static code analysis common security issues and scan common security vulnerabilities

### Screenshot
![Cobra Manual Scan](https://raw.githubusercontent.com/wufeifei/cobra/master/doc/SCREENSHOT.gif)
![Cobra Manual Scan](https://raw.githubusercontent.com/wufeifei/cobra/master/doc/MANUAL.png)
![Cobra Report](https://raw.githubusercontent.com/wufeifei/cobra/master/doc/REPORT.png)


Expand Down
2 changes: 0 additions & 2 deletions app/controller/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,12 @@ def report(id):
for result in results:
# Cache For Rules
if result.rule_id in cache_rules:
log.info("In Cache")
rules = cache_rules[result.rule_id]
else:
rules = CobraRules.query.filter_by(id=result.rule_id).first()
cache_rules[result.rule_id] = rules
# Cache For Vul Type
if rules.vul_id in cache_vul_types:
log.info("In Vul Type Cache")
vul_type = cache_vul_types[rules.vul_id]
else:
vul_type = CobraVuls.query.filter_by(id=rules.vul_id).first().name
Expand Down
Binary file added doc/MANUAL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed doc/SCREENSHOT.gif
Binary file not shown.

0 comments on commit 7aa05d6

Please sign in to comment.