make task entries json serializable (#443)

* make sympy-based task entries json serializable

* remove datetime objs from time_intervals metadata

* make adv geometry json serializable

* make futoshiki metadata json serializable

* fixes

* futoshiki tweaks

* fix adv geometry

* deal with fractions in str representations

* fix

* restore start_time, end_time as str
This commit is contained in:
Oliver Stanley 2025-06-02 07:57:15 +01:00 committed by GitHub
parent 6614338ecc
commit c0e98f93b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 36 additions and 37 deletions

View file

@ -114,7 +114,7 @@ When performing calculations, please follow these guidelines:
"source_dataset": DATASET_NAME,
"source_index": idx,
"polynomial_expr": str(polynomial_expr),
"variables": list(product.free_symbols),
"variables": [str(x) for x in product.free_symbols],
"difficulty": {
"min_terms": self.config.min_terms,
"max_terms": self.config.max_terms,