WindmillWWindmill
Powered by
WarpapayaW
Windmill•12mo 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,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 6d ago

rubenf

Infrastructure as code

rubenf · 4w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

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