Charcoal-SE / metasmoke

Web dashboard for SmokeDetector.
https://metasmoke.erwaysoftware.com
Creative Commons Zero v1.0 Universal
43 stars 34 forks source link

Blazer: p_domain_tags_posts is empty #409

Closed tripleee closed 6 years ago

tripleee commented 6 years ago

This used to work just fine but now it comes up with no results at all, did a mapping somewhere get lost or misspelled perhaps?

SELECT * FROM p_domain_tags_posts LIMIT 10 0 rows

ArtOfCode- commented 6 years ago

"used to work fine" - I think you're getting tables confused.

That much is fairly obvious. There are two more tables that make the HABTM associations between DomainTag <-> SpamDomain and DomainTag <-> Post work:

The latter was only added yesterday when post tags became a thing.

ArtOfCode- commented 6 years ago

What are you trying to query for? AFAICT, no posts have tags yet, so that table shouldn't have any rows.

tripleee commented 6 years ago

Sorry, you're right; I was confused.

tripleee commented 6 years ago

FWIW this is the query I pieced together ultimately. https://metasmoke.erwaysoftware.com/data/sql/queries/43-drugs-spammer-hours