PR#1943 Merged Add Docstring in file_virus_validation

Proposed 7 months ago by artiladdha53
Modified 7 months ago
From forks/artiladdha53/pagure fix-doc  into pagure master
file changed

@@ -72,6 +72,9 @@ 

  

  

  def file_virus_validator(form, field):

+     ''' Checks for virus in the file from flask request object,

+     raises wtf.ValidationError if virus is found else None. '''

+ 

      if not pagure.APP.config['VIRUS_SCAN_ATTACHMENTS']:

          return

      from pyclamd import ClamdUnixSocket

Looks fine to me, let's rebase and merge :)

7 months ago

rebased

7 months ago

rebased

7 months ago

Pull-Request has been merged by pingou

Changes summary
+3 -0
file changed