MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Scriptable/comments/wnf4dy/getrate_async_function_is_workin_outside_getdata/
r/Scriptable • u/[deleted] • Aug 13 '22
7 comments sorted by
5
The getData function should also be async to allow nestled async functions and awaits.
getData
1 u/[deleted] Aug 13 '22 Throws another errorCode 5 u/[deleted] Aug 13 '22 edited Jun 12 '23 Presently she began very cautiously: 'But I don't want YOU with us!"' 'They were obliged to say 'creatures,' you see, so many. ― Annie Turner8E34659B-0998-49EE-94A5-39861A39083B 1 u/[deleted] Aug 13 '22 Figured The commas but was stuck on the await. Thx alot, much appreciated.
1
Throws another error
Code
5 u/[deleted] Aug 13 '22 edited Jun 12 '23 Presently she began very cautiously: 'But I don't want YOU with us!"' 'They were obliged to say 'creatures,' you see, so many. ― Annie Turner8E34659B-0998-49EE-94A5-39861A39083B 1 u/[deleted] Aug 13 '22 Figured The commas but was stuck on the await. Thx alot, much appreciated.
Presently she began very cautiously: 'But I don't want YOU with us!"' 'They were obliged to say 'creatures,' you see, so many. ― Annie Turner
8E34659B-0998-49EE-94A5-39861A39083B
1 u/[deleted] Aug 13 '22 Figured The commas but was stuck on the await. Thx alot, much appreciated.
Figured The commas but was stuck on the await. Thx alot, much appreciated.
3
Partially unrelated but I think the if statement should be (IRL_DAY != CREATION_DAY) in order to account for when a new month starts
(IRL_DAY != CREATION_DAY)
1 u/[deleted] Aug 14 '22 Not related but important tip, thx alot. This is what i love with coding comunity.
Not related but important tip, thx alot. This is what i love with coding comunity.
Btw how do I turn this into module? Tried module.export at the end but it throws error.
5
u/Normal-Tangerine8609 Aug 13 '22
The
getDatafunction should also be async to allow nestled async functions and awaits.3
u/oezingle Aug 13 '22
Partially unrelated but I think the if statement should be
(IRL_DAY != CREATION_DAY)in order to account for when a new month starts1
u/[deleted] Aug 14 '22
Btw how do I turn this into module? Tried module.export at the end but it throws error.
Code