Python Forum
My flask website not working properly
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My flask website not working properly
#1
Hi! I'm making a website (in flask python) to check if ASM code is up to my ASM teacher's standard and am having an issue.


It shows the following errors (erros I wrote, not python errors):

Error:
you dont have 'your variables here' comment / not in the right place. you dont have 'your code here' comment / not in the right place.
Which should happen as my ASM code is up to code.



but my code is up to code...

Do you know why?



the asm file

index.html

code.html

app.py

check.py


edit: The problem appears to be in check.py

Thanks for all who replay!
Reply
#2
didn't look much but there is mismatch with some spaces and new lines
try to replace needed with
needed = [
    "DATASEG\n; --------------------------\n; Your variables here\n; --------------------------\n",
    "start:\n    mov ax, @data\n    mov ds, ax\n; --------------------------\n; Your code here\n; --------------------------\n"
    ]
also in check.py line 23 you want to check for needed[1]
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(Nov-02-2020, 07:05 PM)buran Wrote: didn't look much but there is mismatch with some spaces and new lines
try to replace needed with
needed = [
    "DATASEG\n; --------------------------\n; Your variables here\n; --------------------------\n",
    "start:\n    mov ax, @data\n    mov ds, ax\n; --------------------------\n; Your code here\n; --------------------------\n"
    ]
also in check.py line 23 you want to check for needed[1]

Thanks!
Now I only get the "you dont have 'your code here' comment / not in the right place.<br />" but ill try to fix that
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  new window in separate thread - flask website Notabene 3 525 Sep-20-2021, 08:29 AM
Last Post: jamesaarr
Question Flask, send_from_directory not working : solved SpongeB0B 2 1,603 Jan-26-2021, 07:02 AM
Last Post: SpongeB0B
  Flask, Posgresql - Multiple requests are not working bmaganti 5 1,293 Feb-20-2020, 03:02 PM
Last Post: bmaganti
  Create .exe file for Python flask website. vintysaw 4 11,119 Nov-18-2019, 07:56 AM
Last Post: tonycstech
  Flask Streaming not working on IIS Windows Revencu 0 1,101 Nov-09-2019, 10:31 PM
Last Post: Revencu
  Select Drop down is not working properly ankitjindalbti 3 1,363 Jun-02-2019, 07:37 PM
Last Post: metulburr
  flask app to save images locally when deployed on heroku not working Prince_Bhatia 1 3,339 Feb-20-2019, 11:59 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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