Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

312
Views
JS no reconoce una función de python (usando anguila)

Esta es mi función JS:

 async function get_days(){ **b = await eel.get_events('ofek')();** alert(b); startPoint = new Date(year, month - 1, 1).getDay(); // 0=Sunday numberOfDaysInMonth = new Date(year, month, 0).getDate(); // setting the number of days in the current month numberOfDaysInPrevMonth = new Date(year, month - 1, 0).getDate(); // setting the number of days in the prev month content = ""; for (j = 1; j <= startPoint; j++) { content += "<li class='prev_next'>" + (numberOfDaysInPrevMonth - startPoint + j) + "</li>"; } // TODO for (i = 1; i <= numberOfDaysInMonth; i++){ if (i == currentDate.getDate() && month == currentDate.getMonth() + 1 && year == currentDate.getFullYear()){ content += "<li onclick='return open_create_event_screen();' class='active'>" + i + "</li>"; } else if (i > currentDate.getDate() && month < currentDate.getMonth() + 1 && year == currentDate.getFullYear()) { // TODO content += "<li onclick='return open_create_event_screen();'>" + i + "</li>"; } else { // if the date has already passed - no ability to create event content += "<li>" + i + "</li>"; } } numberOfDaysNextMonth = 7 - (new Date(year, month, 0).getDay() + 1); for (n = 1; n <= numberOfDaysNextMonth; n++) { content += "<li class='prev_next'>" + n + "</li>"; } daysDiv.innerHTML = content; document.getElementById("current_month").innerHTML = monthNames[month - 1]; document.getElementById("current_year").innerHTML = year; }

Este es mi código python donde llamo a la función get_events (usando anguila):

 @eel.expose def get_events(username): print("get_events") name_of_events = client.get_events(username) print(name_of_events) return name_of_events

El problema está en la línea en negrita. El ERROR es: 'Error de referencia no capturado (en promesa): la anguila no está definida'. ¿Alguien sabe por qué cree que la anguila no está definida?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!