Skip to content

Dup Rule Detection; GenAI Hardening

Compare
Choose a tag to compare
@valhuber valhuber released this 01 Oct 21:24
· 869 commits to main since this release

This release fixes dup rule detection, and some new coding styles from ChatGPT that previously caused errors, including:

Decimal Test Data

invoice1 = Invoice(client_id=client1.id, project_id=project1.id, amount=Decimal('1000.0'), issued_date=datetime.datetime.utcnow())

This is fixed by adding import decimal to system/genai/create_db_models_inserts/create_db_models_prefix.py.

Improper syntax for datetime

time_entry2 = TimeEntry(employee_id=2, task_id=2, start_time=datetime.datetime.now(), end_time(datetime.datetime.now() + datetime.timedelta(hours=3), hours_worked=3.0)

The missing equal sign in end_time(datetime.datetime.now() is specifically checked and repaired.