This commit is contained in:
Matt Venn
2023-05-25 13:55:54 +02:00
parent c8a0fcfe6b
commit 02e5cc1ae2
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -205,7 +205,7 @@ class Projects():
logging.info(f"max util {max_util} for project {max_util_project}")
logging.info(f"min util {min_util}")
logging.info(f"languages {languages}")
tags = [ x.strip().lower() for x in tags ]
tags = [x.strip().lower() for x in tags]
tags = list(filter(lambda a: a != "", tags))
def count_items(lst):
@@ -223,6 +223,7 @@ class Projects():
logging.info("top 10 tags")
count_items(tags)
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="TinyTapeout configuration and docs")
+1 -1
View File
@@ -1 +1 @@
flake8 --ignore E203,E123,E501,E221,E401,W605 configure.py project.py tt_tool.py orders.py documentation.py caravel.py
flake8 --ignore E203,E123,E501,E221,E401,W605 configure.py project.py tt_tool.py orders.py documentation.py caravel.py git_utils.py
+2 -2
View File
@@ -24,7 +24,7 @@ class Orders():
try:
with open(self.config['extra_projects']) as fh:
config = yaml.safe_load(fh)
except FileNotFoundError as e:
except FileNotFoundError:
config = []
config.append({'project': {'url' : git_url, 'timestamp' : time.time()}})
@@ -75,7 +75,7 @@ class Orders():
while after_open_date:
refunds = stripe.Refund.list(limit=10, starting_after=start_id)
for refund in refunds:
for refund in refunds:
created = datetime.fromtimestamp(refund['created'])
if created < self.open_date:
after_open_date = False