Files
foundation/foundation/www/index.py
2018-02-20 17:31:35 +05:30

11 lines
259 B
Python

# See license.txt
from __future__ import unicode_literals
import frappe
def get_context(context):
out = {
"events": frappe.get_all("Portal Event", fields=["event_title", "event_date", "details", "route"], filters=[["published", "=", 1]])
}
return out