Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Impossible error
Post: RE: Impossible error

Well, I'm an idiot. All that because I forgot to reload apache, I'm guessing that anything that relates directly to the flask side of the coding requires me to update my apache server, otherwise it g...
DeadCthulhuWaitsDreaming Web Scraping & Web Development 1 20,056 May-25-2019, 05:01 AM
    Thread: Impossible error
Post: Impossible error

Ok, to start, this code WORKED perfectly fine: from flask import Flask, render_template from random import randint from math import floor import csv import json app = Flask(__name__) @app.route("/")...
DeadCthulhuWaitsDreaming Web Scraping & Web Development 1 20,056 May-25-2019, 03:02 AM
    Thread: if clause fails
Post: RE: if clause fails

Ok, that works till I finish filling in all the values, thanks again
DeadCthulhuWaitsDreaming General Coding Help 10 4,751 Apr-07-2019, 09:19 PM
    Thread: if clause fails
Post: RE: if clause fails

Everywhere I've tried to cast to int I get an error, but I have now just realized there are blank values and that just isn't gonna cast well is it.
DeadCthulhuWaitsDreaming General Coding Help 10 4,751 Apr-07-2019, 08:20 PM
    Thread: if clause fails
Post: RE: if clause fails

Ah I see, gotcha. The info is read in from a file, I never changed the string to an int, I guess a typecast should work?
DeadCthulhuWaitsDreaming General Coding Help 10 4,751 Apr-07-2019, 08:08 PM
    Thread: if clause fails
Post: RE: if clause fails

HAHA they're strings, thanks a bunch, I'll either throw some quotes around the number I'm checking against or find where my int becomes a str.
DeadCthulhuWaitsDreaming General Coding Help 10 4,751 Apr-07-2019, 07:34 PM
    Thread: if clause fails
Post: RE: if clause fails

I'm printing num out so that I know what it's value is when it passes through the if clause, 8 out of 11 values printed out are less than 5. As far as I know there is nothing that should effect the v...
DeadCthulhuWaitsDreaming General Coding Help 10 4,751 Apr-07-2019, 07:29 PM
    Thread: if clause fails
Post: if clause fails

OK, this shouldn't be that hard but maybe I'm missing something. This is the full function, the problem lies between the ###########################################################################s. ...
DeadCthulhuWaitsDreaming General Coding Help 10 4,751 Apr-07-2019, 06:38 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020