(dictionary, key, factor, default_value=None)
| 803 | |
| 804 | @staticmethod |
| 805 | def safe_integer_product(dictionary, key, factor, default_value=None): |
| 806 | try: |
| 807 | return int(float(dictionary[key]) * factor) |
| 808 | except Exception: |
| 809 | return default_value |
| 810 | |
| 811 | @staticmethod |
| 812 | def safe_timestamp(dictionary, key, default_value=None): |
no outgoing calls