This commit is contained in:
powerexploit 2023-10-11 05:55:38 -07:00 committed by GitHub
commit de298a908d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

9
.deepsource.toml vendored Normal file
View File

@ -0,0 +1,9 @@
version = 1
[[analyzers]]
name = "python"
enabled = true
[analyzers.meta]
runtime_version = "3.x.x"

View File

@ -19,7 +19,6 @@ Simplifictions and improvements through patches are more than welcome however :)
import json
import os
import pprint
fpath = os.path.join(os.path.dirname( __file__ ), '..', 'README.md')
examples = []

View File

@ -78,7 +78,7 @@ with open("add_categories", "r") as f:
while True:
title = content.next()
cat = content.next().strip()
is_new = True if cat[-1]=="*" else False
is_new = cat[-1]=="*"
cat = cat.replace('*','')
snips_by_title[title] = {
"category": cat,