Hi Brian,
There are some strange aspects to those calls: the #cargo_store call should
not have a "where" parameter (you may be confusing between #cargo_store and
#cargo_query). Also there's no need for a "Page_Name" field, because every
Cargo table will already have an automatic "_pageName" field, which should
hold the data you need. It could be that one or another of those issues are
somehow causing this duplication problem. If getting rid of those doesn't
fix the problem - I would make sure you're using the very latest Cargo
code, because there was just a fix to a duplication issue a few weeks ago.
And if that doesn't work either - what do you mean by a "partial duplicate"
record?
-Yaron
On Sat, Mar 7, 2020 at 1:36 PM Bri <dev(a)rlyehable.com> wrote:
I keep getting duplicate (or partial duplicate)
records. How can I avoid
this?
<!-- Cargo Table -->
{{#cargo_declare:
_table = 5eMonster
|Sort_Text = String
|Page_Name = Page (unique)
|Monster_Name = String
...
}}
<!-- Store Data-->
{{#cargo_store:
_table = 5eMonster
|where= Page_Name = {{FULLPAGENAME}}
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}}|{{PAGENAME}}}}
|Page_Name = {{FULLPAGENAME}}
|Monster_Name = {{{name|}}}
...
}}
-Thanks in advance,
Brian
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--
WikiWorks · MediaWiki Consulting ·
http://wikiworks.com