coecms/ARCCSSive

View on GitHub
database_updates/upload_drstree.py

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

                for f in files:
                    checksum=check_hash(v_obj.path+"/"+f,'md5')
                    rows.append(dict(filename=f, md5=checksum, version_id=v_obj.id))
                    add_bulk_items(db, VersionFile, rows)
            else:
Severity: Major
Found in database_updates/upload_drstree.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                    for f in files:
                        kw_files['filename']=f
                        kw_files['md5']=check_hash(v_obj.path+"/"+f,'md5')
                        insert_unique(db, VersionFile, **kw_files)
    
    
    Severity: Major
    Found in database_updates/upload_drstree.py - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status