WindmillWWindmill
Powered by
WarpapayaW
Windmill•11mo ago•
2 replies
Warpapaya

datetime script param throwing a syntax error in python

I'm trying to use a datetime script param but the linter flags it as an error and when run I get "NameError: name 'datetime' is not defined. Am I missing something here?

def main(startDate: datetime, endDate: datetime, page: list):
    #rest of script
def main(startDate: datetime, endDate: datetime, page: list):
    #rest of script
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Logging in Python Script
Alexander EiseleAAlexander Eisele / help
2y ago
Mysql script : issue with IN(...) syntax
Chris_BLZCChris_BLZ / help
17mo ago
Weird script python problem
Elber DomingosEElber Domingos / help
16mo ago
Syntax Error
wolff453Wwolff453 / help
6mo ago