Files
WLUS/tests/easy_cdclient_test.py
Wesley a9c5b26d38 Replacing projects
I didn't like what I was working with in the Old WLUS, so I'm working on a rewrite. This is the initial upload of the rewrite.
2020-03-08 15:43:14 -04:00

13 lines
520 B
Python

import sqlite3
import sys
sys.path.append("../plugins")
from easy_cdclient import cdclient_tables
conn = sqlite3.connect("../res/cdclient.sqlite")
c = conn.cursor()
c.execute("SELECT * FROM Objects WHERE id = 6010")
results = c.fetchone()
a = cdclient_tables.ObjectsTable.filter_return_results(results)
print(results)
print((a.id, a.name, a.placeable, a.type, a.description, a.localize, a.npcTemplateID, a.displayName,
a.interactionDistance, a.nametag, a._internalNotes, a.locStatus, a.gate_version, a.HQ_valid))