-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom date formatter to be used by the nvt filter. #57
Conversation
Each wrapper has different formats for datetime values. This function formats the datetime valued to be comapared with a standar format.
Depends on greenbone/ospd#94 |
Update tests accordingly.
020dd45
to
e7525b2
Compare
@@ -210,7 +226,8 @@ def __init__(self, certfile, keyfile, cafile): | |||
""" Initializes the ospd-openvas daemon's internal data. """ | |||
|
|||
super(OSPDopenvas, self).__init__(certfile=certfile, keyfile=keyfile, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to this PR: Could be simplified with python 3
super(OSPDopenvas, self).__init__(certfile=certfile, keyfile=keyfile, | |
super().__init__(certfile=certfile, keyfile=keyfile, |
Codecov Report
@@ Coverage Diff @@
## master #57 +/- ##
=========================================
+ Coverage 71.61% 71.9% +0.29%
=========================================
Files 4 4
Lines 775 783 +8
=========================================
+ Hits 555 563 +8
Misses 220 220
Continue to review full report at Codecov.
|
Make stop_scan a staticmethod.
Each wrapper has different formats for datetime values. This method
formats the datetime valued to be comapared with a standar format.
The method overwrites the original in the parent class.