# 用于已监控词标记的“从文件添加”

**URL:** https://meta.discourse.org/t/add-from-file-for-watched-word-tagging/245386
**Category:** Bug
**Tags:** watched-words
**Created:** [2022 年11 月 13 日 00:05 UTC](https://meta.discourse.org/t/add-from-file-for-watched-word-tagging/245386 "2022-11-13T00:05:34Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ncaming215](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ncaming215/32/205701_2.png) [@ncaming215](https://meta.discourse.org/u/ncaming215)
#### Post date: [2022 年11 月 13 日 00:05 UTC](https://meta.discourse.org/t/add-from-file-for-watched-word-tagging/245386/1 "2022-11-13T00:05:34Z")

</div>

这似乎根本不起作用。

我想知道我是否可以上传，就像我们上传标签一样。所以在这个例子中，CSV 将是：

`Hello World,Hello-World`

文件上传成功，但没有添加任何单词。

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023 年1 月 16 日 09:59 UTC](https://meta.discourse.org/t/add-from-file-for-watched-word-tagging/245386/2 "2023-01-16T09:59:54Z")

</div>

您好 @ncaming215 :slight_smile:

抱歉这么晚才测试这个。我在我的测试网站上试了一下，我也无法让批量上传接受我标记的“Watched Words”（已关注词语）。

我的（非常基础的）分步操作：

- 创建包含已关注词语和标签的 csv 文件（格式为 `dog,dog-tag`）
- 使用“从文件添加”上传到“Watched Words”的“Tag”（标签）部分
- 模态框显示“上传成功。已添加词语”，但没有添加任何“Watched Words”

我尝试了使用新标签和现有标签，以及使用 `txt` 文件以防有影响，但结果都一样。

其他双重“Watched Words”（已关注词语）似乎按预期工作（替换和链接）。

---

<div class="post-metadata">

### Author: ![ncaming215](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ncaming215/32/205701_2.png) [@ncaming215](https://meta.discourse.org/u/ncaming215)
#### Post date: [2023 年1 月 16 日 17:33 UTC](https://meta.discourse.org/t/add-from-file-for-watched-word-tagging/245386/6 "2023-01-16T17:33:45Z")

</div>

> [@JammyDodger](#):
>
> 抱歉，测试这个功能有所延迟。我在我的测试网站上试了一下，我也无法让批量上传接受我标记的“Watched Words”（已关注的词语）。

感谢确认！是的，我费尽心思添加了超过一百个“Watched Words”（已关注的词语），但由于它们每年都会变化，任何对此的修复都将广受赞赏。:slight_smile:

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2023 年7 月 12 日 15:22 UTC](https://meta.discourse.org/t/add-from-file-for-watched-word-tagging/245386/10 "2023-07-12T15:22:57Z")

</div>

```txt
text one,existing-tag-1
text two,new-tag
text three,existing-tag-2

```

我认为这个问题仅在替换标签不存在时发生。如果我上传包含上述内容的 CSV 文件，它会添加“`text one,existing-tag-1`”和“`text three,existing-tag-2`”，但会跳过第二个。如果文件中的所有标签都已存在，它不会引发任何错误并成功添加监视的单词。

我将推送一项更改以在标签不存在时创建它们。

---

<div class="post-metadata">

### Author: ![Guilllouv](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@Guilllouv](https://meta.discourse.org/u/Guilllouv)
#### Post date: [2024 年12 月 9 日 16:50 UTC](https://meta.discourse.org/t/add-from-file-for-watched-word-tagging/245386/16 "2024-12-09T16:50:53Z")

</div>

您好！

这件事有什么进展吗？

我未能从文件中设置要监视的标签，尽管其中一些标签确实存在。

是否至少可以不显示“成功”消息，或者显示已添加的要监视标签的数量？

谢谢！

---

<div class="post-metadata">

### Author: ![hugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hugh/32/336717_2.png) [@hugh](https://meta.discourse.org/u/hugh)
#### Post date: [2024 年12 月 10 日 23:08 UTC](https://meta.discourse.org/t/add-from-file-for-watched-word-tagging/245386/20 "2024-12-10T23:08:16Z")

</div>

感谢您在此跟进！

我们已注意到此问题，并已将其添加到我们的待办事项列表中进行修复。虽然我们目前无法提供修复时间表，但一旦我们着手处理并取得一些进展，我们将在此跟进。
