generateur_v3/backend/api/services/misc.py
Kilton937342 936931f047 api
2022-10-10 01:34:38 +02:00

10 lines
187 B
Python

from typing import Dict
def noteOn20(note: int, total: int):
return note * 20/total
def stripKeyDict(dict: Dict, key: str):
return {k: v for k, v in dict.items() if k != key}