This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| UserDataType, | |
| getSSLHubRpcClient, | |
| utf8StringToBytes, | |
| } from "@farcaster/hub-nodejs"; | |
| import { NextRequest } from "next/server"; | |
| const client = getSSLHubRpcClient(process.env.HUB_RPC_ENDPOINT as string); | |
| export async function GET(request: NextRequest) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from api.lib.tasks.index_objects import index_objects | |
| from api.lib.utils.list_utils import chunks | |
| from api.lib.utils import get_logger | |
| logger = get_logger() | |
| start = datetime(2021, 11, 30, 17, 0) | |
| end = datetime(2021, 11, 30, 17, 50) | |
| asset_ids_created = AssetEvent.objects.using(settings.DB_REPLICA_LONG_QUERIES).filter(event_timestamp__gte=start, event_timestamp__lte=end, event_type="created").order_by('total_price').values('asset_id').distinct() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "type": "insect", | |
| "name": "Common Butterfly", | |
| "price": 160, | |
| "location": "Above Flowers", | |
| "time": { | |
| "start": 4, | |
| "end": 19 | |
| }, |