import json
import openpyxl
from openpyxl import Workbook
import datetime
from pocketbase import PocketBase
from pocketbase.client import FileUpload
import requests
client = PocketBase("#ip to pocketbaseserver")
help = client.collection("departures").get_list()
I'm trying to do a simple fetch from my database but it doesn't appear that there are any methods defined as collection in the client. Am i doing something wrong?
help = client.collection("departures").get_list()
^^^^^^^^^^^^^^^^^
AttributeError: 'PocketBase' object has no attribute 'collection'. Did you mean: 'collections'?
I'm trying to do a simple fetch from my database but it doesn't appear that there are any methods defined as collection in the client. Am i doing something wrong?
AttributeError: 'PocketBase' object has no attribute 'collection'. Did you mean: 'collections'?