gt; for the prompt response.
>
> On Wed, Apr 5, 2023 at 10:16 AM Lele Gaifax wrote:
>
>> Nancy Andeyo writes:
>>
>> > However, the part with problems is this one: .filter(func.strftime('%m',
>> > Event.event_date = datetime.today().strftime('%m'))) whe
esponse.
>
> On Wed, Apr 5, 2023 at 10:16 AM Lele Gaifax wrote:
>
>> Nancy Andeyo writes:
>>
>> > However, the part with problems is this one: .filter(func.strftime('%m',
>> > Event.event_date = datetime.today().strftime('%m'))) where the aim to
&
>
> On Wed, Apr 5, 2023 at 10:16 AM Lele Gaifax wrote:
>
>> Nancy Andeyo writes:
>>
>> > However, the part with problems is this one: .filter(func.strftime('%m',
>> > Event.event_date = datetime.today().strftime('%m'))) where the aim to
&
od. Note that I have imported the
following modules from sqlalchemy import func and from datetime import
datetime at the top.
The event_date field in the models.py is stored as a db.DateTime with a default
= datetime.utcnow.
On Wed, Apr 5, 2023 at 9:07 AM Lele Gaifax wrote:
> Nancy An
od. Note that I have imported the
following modules from sqlalchemy import func and from datetime import
datetime at the top.
On Wed, Apr 5, 2023 at 9:07 AM Lele Gaifax wrote:
> Nancy Andeyo writes:
>
> > the filter *.filter(func.strftime('%m', func.date(Events.date_of_event)
&g
I am still struggling to find the solution on this issue, the issue is with
the func, because when I omit the comparison with the the func
sqlachemy function, the outcome is expected. However, I want to ensure that
only items for this month are displayed:
he filter *.filter(func.strftime('%m',
I am still struggling to find the solution on this issue, the issue is with
the func, because when I omit the comparison with the func
sqlalchemy function, the outcome is expected. However, I want to ensure
that only items for this month are displayed:
he filter *.filter(func.strftime('%m',
I am trying to fill up a field in a table database with contents of a text
file, but get None as the response when I run the code. Any assistance will
be appreciated. Here is my code:
# view function - routes.py
...
@app.route('/add_vlans', methods = ['GET', 'POST'])
@login_required
def